<template>
  <view class="lunbobox">
	<video
	  src="static/output_video.mp4"  
	  autoplay="true"                  
	  controls="true"                 
	  width="100%"                     
	  height="300"                      
	></video>

  </view>
</template>

<script>
export default {
  data() {
    return {
      list3: [
        'https://cdn.uviewui.com/uview/swiper/swiper2.png',
      ],
	baseList: [{
			  name: 'photo',
			  title: '图片'
			  },
			  {
				  name: 'lock',
				  title: '锁头'
			  },
			  {
				  name: 'star',
				  title: '星星'
			  },
				{
				name: 'hourglass',
				title: '沙漏'
				},
		  ]
    };
  },
  onLoad() {
  	this.getLunboUrl()
  },
  methods:{
	  async getLunboUrl(){
		  const {data:res} = await uni.$http.get("/pet/getLunboUrl")
		  if(res.code !== 0){
		  	return uni.showToast({
		  		title:"数据请求失败！"
		  	})
		  	}else{
		  		this.list3 = res.data
		  	}
	  },
	  click(name) {
	                  this.$refs.uToast.success(`点击了第${name}个`)
	    }
  },
  
};
</script>

<style lang="scss">
.lunbobox {
  width: 100%;
  .logo{
  	height: 80rpx;
  	width: 100%;
	  display: flex; /* 使用 flex 布局 */
	  align-items: center; /* 垂直居中 */
	  font-weight: bold; /* 字体加粗 */
	  text-align: center; /* 如果文字在容器内多行，仍能水平居中 */
	  text{
		  margin-left: 50rpx;
	  }
  }
}
.toolbox{
	margin-top: 30rpx;
}
.swiper {
        height: 150rpx;
    }
</style>
